package com.project.webpage.service.impl;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.project.webpage.dto.SearchByRqParam;
import com.project.webpage.dto.YhDto;
import com.project.webpage.mapper.YhMapper;
import com.project.webpage.service.YhService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class YhServiceImpl implements YhService {

    @Resource
    private YhMapper yhMapper;

    @Override
    @DS("master")
    public List<YhDto> getListForPage(SearchByRqParam param) {
        return yhMapper.selectListByUid(param);
    }
}
